import { Module } from '@nestjs/common'
import { ConfigModule } from '@nestjs/config'
import { SiteModule } from './site/site.module'
import { PageModule } from './page/page.module'
import { PageConfigModule } from './page/page-config/page-config.module'
import { DatabaseModule } from '@app/comm/database/database.module'
import { getConfig } from '@app/comm/utils'

@Module({
  imports: [
    ConfigModule.forRoot({
      ignoreEnvFile: true,
      isGlobal: true,
      load: [getConfig],
    }),
    SiteModule,
    PageModule,
    PageConfigModule,
    DatabaseModule,
  ],
})
export class AppModule {}
